#include "form2_2.h"
#include "ui_form2_2.h"

Form2_2::Form2_2(QEventLoop &qel,int &choice,QWidget *parent)
    :eventLoop(qel),
    a_choice(choice),
    QWidget(parent),
    ui(new Ui::Form2_2)
{
    ui->setupUi(this);
}

Form2_2::~Form2_2()
{
    delete ui;
}

void Form2_2::on_pushButton_yes_clicked()
{
    a_choice=1;
    this->close();
    eventLoop.quit();
}


void Form2_2::on_pushButton_no_clicked()
{
    a_choice=0;
    this->close();
    eventLoop.quit();
}
